package com.scf.user.service.impl;

import com.scf.user.entity.User;
import com.scf.user.mapper.UserMapper;
import com.scf.user.service.UserService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * @author author
 * @create 2021-11-11-11:16
 */
@Service
public class UserServiceImpl implements UserService {

    @Resource
    UserMapper userMapper;
    @Override
    public User getUser(User user) {
        User getUser = userMapper.selectUser(user);
        return getUser;
    }

    @Override
    public User getTreeMenu(int uid) {
        User user = userMapper.selectRoleMenu(uid);
        return user;
    }
}
